/**
 * flightReservation package contains classes that enable
 * users to make reservations with a particular airline
 */
package flightReservation;

import java.io.Serializable;

/**
 *
 *
 */
public class Passenger implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = 1L;
	private String name;
	private String emailId;
	private String contactNo;
	private String address;

	/**
	 * 
	 */
	public Passenger() {
	}
	public Passenger(String name, String emailId, String contactNo, String address) {
		this.name = name;
		this.emailId = emailId;
		this.contactNo = contactNo;
		this.address = address;
	}

	public String getName() {
		return this.name;
	}
	public String getEmailId() {
		return this.emailId;
	}
	public String getContactNo() {
		return this.contactNo;
	}
	public String getAddress() {
		return this.address;
	}
	
	public void setName(String name) {
		this.name = name;
	}
	// no setter for email ID since that is our unique primary key
	// Check first to see if a passenger exists with a particular email ID
	// before creating a new passenger object
	// we don't want email ID to be changed on the fly
	public void setContactNo(String contactNo) {
		this.contactNo = contactNo;
	}
	public void setAddress(String address) {
		this.address = address;
	}

	/**
	 * @param args
	 */
	public static void tester(String[] args) {

	}

}
